package com.itcast.demo.valueTest;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/val")
public class ValueController {
    @Autowired
    private ValueInjectionExample valueInjectionExample;
    @Autowired
    private ValueInjectionExample1 valueInjectionExample1;

    @PostMapping("/test")
    public void test() {
        System.out.println(valueInjectionExample);
        System.out.println(valueInjectionExample1);
    }
}
